package com.lkm.app_ui.help;

import com.lkm.app_ui.RunTimeData;
import com.lkm.javatool.StringHelp;



public class PrinterHelp {

    public static void print(String orderInfoStr, String qr) throws Exception {

        String printerMode = RunTimeData.printerMode;
        if (printerMode.equals("p-cm")) {
            PrinterUtil.print(orderInfoStr);
            if(!StringHelp.isEmpty(qr))
            PrinterUtil.printQRCode(qr);
            PrinterUtil.print("\n\n");
        } else {
            PrinterMarketUtil.print(orderInfoStr, qr);
        }


    }
}
